function LinkMerchantList($merchantid) {
	self.location = '../merchantlist/?merchantid=' + $merchantid;
//	MerchantListWindow = window.open('index.php', 'merchantlist');
	return false;
};

function OpenAA($id,$class) {
	var width =  633;	// x
	var height = 510;	// y
	AAWindow = window.open('aa.php?id=' + $id + '&class=' + $class, 'AA', 'toolbar=no,menubar=no,location=no,status=no,resizable=no,scrollbars=yes');
	AAWindow.resizeTo(width,height);
	AAWindow.focus();
	return false;
};

function OpenBank($id) {
	var width =  225;	// x
	var height = 475;	// y
	BankWindow = window.open('bank.php?id=' + $id, 'Bank', 'toolbar=no,menubar=no,location=no,status=no,resizable=no,scrollbars=no');
	BankWindow.resizeTo(width,height);
	BankWindow.focus();
	return false;
};

function OpenBook($filename) {
	// var width =  300;	// x
	// var height = 710;	// y
	BookWindow = window.open('../books/?filename=' + $filename, 'Book', 'toolbar=no,menubar=no,location=no,status=no,resizable=no,scrollbars=yes');
	// BookWindow.resizeTo(width,height);
	BookWindow.focus();
	return false;
};

function OpenBuffs($id) {
	var width =  300;	// x
	var height = 710;	// y
	BuffsWindow = window.open('buffs.php?id=' + $id, 'Buffs', 'toolbar=no,menubar=no,location=no,status=no,resizable=no,scrollbars=yes');
	BuffsWindow.resizeTo(width,height);
	BuffsWindow.focus();
	return false;
};

function OpenContainer($link) {
	var width =  115;	// x
	var height = 300;	// y
	ContainerWindow = window.open($link, 'Container', 'toolbar=no,menubar=no,location=no,status=no,resizable=no,scrollbars=no');
	ContainerWindow.resizeTo(width,height);
	ContainerWindow.focus();
	return false;
};

function OpenItem($link) {
	var width =  450;	// x
	var height = 300;	// y
	ItemWindow = window.open($link, 'Item', 'toolbar=no,menubar=no,location=no,status=no,resizable=yes,scrollbars=yes');
	ItemWindow.resizeTo(width,height);
	ItemWindow.focus();
	return false;
};

function OpenItemIcon($link) {
	var width =  50;	// x
	var height = 100;	// y
	ItemIconWindow = window.open($link, 'ItemIcon', 'toolbar=no,menubar=no,location=no,status=no,resizable=no,scrollbars=no');
	ItemIconWindow.resizeTo(width,height);
	ItemIconWindow.focus();
	return false;
};

function OpenMemSpells($id) {
	var width =	 400;	// x
	var height = 330;	// y
	MemSpellsWindow = window.open('memspells.php?id=' + $id, 'MemSpells', 'toolbar=no,menubar=no,location=no,status=no,resizable=no,scrollbars=yes');
	MemSpellsWindow.resizeTo(width,height);
	MemSpellsWindow.focus();
	return false;
};

function OpenSkills($id) {
	var width =  310;	// x
	var height = 300;	// y
	SkillsWindow = window.open('skills.php?id=' + $id, 'Skills', 'toolbar=no,menubar=no,location=no,status=no,resizable=no,scrollbars=yes');
	SkillsWindow.resizeTo(width,height);
	SkillsWindow.focus();
	return false;
};

function OpenSpell($link) {
	var width =  450;	// x
	var height = 300;	// y
	SpellWindow = window.open($link, 'Spell', 'toolbar=no,menubar=no,location=no,status=no,resizable=no,scrollbars=yes');
	SpellWindow.resizeTo(width,height);
	SpellWindow.focus();
	return false;
};

function OpenSpellBook($id) {
	var width =  540;	// x
	var height = 385;	// y
	SpellBookWindow = window.open('spellbook.php?id=' + $id, 'SpellBook', 'toolbar=no,menubar=no,location=no,status=no,resizable=no,scrollbars=no');
	SpellBookWindow.resizeTo(width,height);
	SpellBookWindow.focus();
	return false;
};
